<template>
	<div>
		<div class="content-top">
			<span class="h1">系统管理</span>
			<span class="h2">日志管理</span>
		</div>
		<div class="log-type">
			<div class="title clearfix" style="margin-bottom: 20px;">
				<div class="fl" style="width:50%;">
					<span class="titles">日志列表</span>
				</div>
				<div class="fr">
					<el-input v-model="input" placeholder="请输入内容" style="width:217px;"></el-input>
					<el-button type="primary">查询</el-button>
				</div>
			</div>
		</div>
		<div class="log-cocnten">
			<div class="log-con">
				<el-table :data="logs" border style="width: 100%" @filter-change='filter()'>
					<el-table-column type="index" width="60" align='center'>
					</el-table-column>
					<el-table-column prop="CreateMan" label="操作人" align='center'>
					</el-table-column>
					<el-table-column prop="CreateDate" label="操作时间" align='center'>
					</el-table-column>
					<el-table-column prop="OperateType" label="操作内容" align='center'>
					</el-table-column>
					<el-table-column prop="BusinessType" label="业务类型" align='center'>
					</el-table-column>
					<el-table-column prop="BusinessID" label="业务ID" align='center'>
					</el-table-column>
					<el-table-column label="操作" align='center' s>
						<template slot-scope="scope">
							<el-button size="mini" type="danger" @click="deleteRow(scope.$index)">删除</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div class="pages">
					<el-pagination background layout="prev, pager, next" :total="1">
					</el-pagination>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
	export default {
		name: 'log',
		data() {
			return {
				logs:[{
					CreateMan:'admin',
					CreateDate:'2018-4-5',
					BeforeValue:'1',
					ResultValue:'2',
					OperateType:'未知',
					BusinessType:'字符',
					BusinessID:1
				},
				{
					CreateMan:'admin',
					CreateDate:'2018-4-5',
					BeforeValue:'1',
					ResultValue:'2',
					OperateType:'未知',
					BusinessType:'字符',
					BusinessID:1
				}],
				input: "",
				dialogVisible: false,
				pageindex: 0,
			}
		},
		created() {},
		methods: {
			//删除
			deleteRow(index){
				this.logs.splice(index, 1);
			},
		}
	}
</script>

<style>
</style>